
public class mainClass {

	
	public static void main(String[] args) {
		
		// creating counter and figure objects
		Counter count = new Counter(); 
		Triangle triangle = new Triangle(1, 1, 1, 10, 20, 25);
		Point point = new Point(50,50);
		Circle circle = new Circle(50, 50, 25);
		Segment segment = new Segment(1,1,1,10);
		
		//Testing whichAreaBigger functionality
		System.out.println("Triangle:");
		triangle.printInfo();
		System.out.println("Point:");
		point.printInfo();
		System.out.println("Segment:");
		segment.printInfo();
		System.out.println("Greatest area has figure number:");
		System.out.println(count.wichAreaBigger(triangle,circle, segment));
		
		
		//testing return circle functionality
		Circle circletmp = new Circle(0, 0, 0);
		System.out.println("Triangle:");
		triangle.printInfo();
		circletmp = count.returnCircle(triangle);
		System.out.println("Generated circle:");
		circletmp.printInfo();
		
		// testing n-polygon
		int[] array;
		array = new int[8];
		array[0] =  1;
		array[1] = 1;
		array[2] = 1;
		array[3] = 10;
		array[4] = 20;
		array[5] = 25;
		array[6] = 27;
		array[7] = 5;
		n_Polygon npolygon = new n_Polygon(array.length, array);
		npolygon.printInfo();
		  
		
		
	

			
		
		
	}

}
